<?php
 include('header.php');
$id=$_REQUEST['id'];

$sql = "select  allstudent.studentname,allstudent.phone, allstudent.college,
			leaveapply.leavereason from allstudent, leaveapply where allstudent.studentid=$id 
			and leaveapply.studentid = $id";
$res = mysql_query($sql);
// var_dump($res);
if ($res==null)echo "空";
$row=mysql_fetch_array($res);
// echo $row["studentid"]."<br/>";
// echo $row["studentname"].'<br/>';
// echo $row["sex"].'<br/>';
// echo $row["nation"]."<br/>";
// echo $row["scioa"].'<br/>';
// echo $row["birthday"].'<br/>';
// echo $row["phone"]."<br/>";
// echo $row["college"].'<br/>';
// echo $row["专业"].'<br/>';
// echo $row["空余时间"]."<br/>";
// echo $row["个人描述"].'<br/>';
// echo $row["学号"]."<br/>";
// echo $row["空余时间"]."<br/>";
// echo $row["个人描述"]."<br/>";
?>

<html>
   <head>
    <title>云南大学图书管</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8" />
    <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="./css/headernav.css">
	<script type="text/javascript" src="./js/jquery-1.9.js" ></script>
    <script type="text/javascript" src="./js/bootstrap.min.js" ></script>
	 
   </head>

   <body>
   <form enctype="multipart/form-data" action="delete_student.php" method="post" name="uploadForm" id="uploadForm">
  <div id="logo">
  <img src="./images/icon.png">
  <span>图书馆勤工办公系统</span>
</div>
  <!--导航-->
  <nav class="navbar navbar-default" role="navigation" id="header_nav">

  <div class="container-fluid">
<div id="mainbody0"  >
<div class="col-lg-12" id="charge">
    <div class="panel panel-primary">
   <div class="panel-heading">
      <h3 class="panel-title"><?php echo $row["studentname"]?>&nbsp;&nbsp;的离职申请</h3>
   </div>
   <div class="panel-body">
     
   </div>
<table width="982" border="0" align="center">
  <tr>
    <td>
	<table width="981" align="right" height="393" border="0" cellspacing="0" bordercolor="#999999">
      <tr>
        <td width="360" align="center">学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:<input type="text" name="usernum" id="usernum" 
        				 value="<?php echo $id?>"/>
        </td>
		<td>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:<input type="text" name="userphone" id="userphone"
         value="<?php echo $row["phone"]?>"
         /></td>
        </tr>
      <tr>
        <td align="center">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:<input type="text" name="username" id="username"
         	value="<?php echo $row["studentname"]?>"/>
         </td>
        <td>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;院:<input  type="text"  id="college"  value="<?php echo $row["college"]?>"/></td>
        </tr>
      <tr>
        <td colspan="3">
		<table border="0" cellspacing="0">
          <tr>
            <td ><p align="center"><font size="4"><b>离</br>职</br>理</br>由</b></font></p></td>
            <td ><textarea name="reason" id ="reason"cols="115" rows="5"><?php echo $row["leavereason"]?></textarea></td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td height="37" colspan="3" align="center">
		是否通过审核: &nbsp;&nbsp;&nbsp;是<input type="radio"  name="yon" id="man" checked="checked" value="yes" />
			   				  &nbsp;&nbsp;&nbsp;否<input type="radio" name="yon" id="woman" value="no" />
		</td>
      </tr>
      <tr><td  colspan="3"  align="center"><input type="submit" value="提交"></td></tr>
    </table></td>
  </tr>
</table>
</div>
</div>
</div> 
<footer>
	<div>
		 <div class="panel panel-default" id="foot" >
			 <div class="panel-body" align="center">
			版权信息 © 2014, 云南大学图书馆         
			 </div>
		 </div>
	</div>
</footer>
</form>
</body>
</html>